<?php

/**
 * PaymentInvoice form base class.
 *
 * @method PaymentInvoice getObject() Returns the current form's model object
 *
 * @package    erpcrm
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
 */
abstract class BasePaymentInvoiceForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'payment_iden' => new sfWidgetFormInputHidden(),
      'invoice_iden' => new sfWidgetFormInputHidden(),
      'amount'       => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'payment_iden' => new sfValidatorPropelChoice(array('model' => 'Payment', 'column' => 'payment_iden', 'required' => false)),
      'invoice_iden' => new sfValidatorPropelChoice(array('model' => 'Invoice', 'column' => 'invoice_iden', 'required' => false)),
      'amount'       => new sfValidatorNumber(),
    ));

    $this->widgetSchema->setNameFormat('payment_invoice[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'PaymentInvoice';
  }


}
